package cn.itcast.order.clients;

import cn.itcast.order.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 张瑞洋
 * @title: UserClient
 * @projectName cloud-demo
 * @description: TODO
 * @date 2022/5/7 9:23
 */
@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/{id}")
    User FindById(@PathVariable("id") Long id);
}
